-- GENERATED SPELL FOR [Caldemere Snapper] --


function spell0_24287(pUnit, Event) --@Claw Grasp,n/a--
pUnit:FullCastSpellOnTarget(49978,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24287', 4000, 1)
end

function Sorts_24287(pUnit, Event)
local choix_sorts_24287 = math.random(0, 0)
if choix_sorts_24287 == 0 then
pUnit:RegisterEvent('spell0_24287', 1, 1)
end
end

function mob24287_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24287', math.random(1500, 3000), 1)
end

function mob24287_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24287_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24287_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24287, 1, 'mob24287_Action')
RegisterUnitEvent(24287, 2, 'mob24287_Leave')
RegisterUnitEvent(24287, 3, 'mob24287_Kill')
RegisterUnitEvent(24287, 4, 'mob24287_Die')
